<style type="text/css">
.addform {font-size:14px;font-family:"Microsoft YaHei";}
.addform p{line-height:36px;}
.addform p .text{ width:320px; border:1px solid #cccccc; height:24px; line-height:24px; padding:2px 5px;margin:5px; }
.addform p label{display:inline-block;width:80px;vertical-align:top;}
.addform p #myeventsubmit{line-height:28px;height:36px;padding:3px 10px;background:#EEEEEE;border:1px solid #999999}
#add_form_pics img{ width:60px; height:60px; margin:5px; padding:5px;border:1px solid #EEEEEE;}

.event_grid{ background:#F6F6F6;border-bottom:3px solid #27B6BC;width:180px;padding:15px; margin:10px 8px;float:left; }
.event_grid p{line-height:26px;}
.event_grid img{ border:none;margin-bottom:10px; padding:0; width:180px;height:180px; text-align:center;}
.event_grid .event_tit{text-align:center;}

</style>
<div id="shareshow" class="grayline cf addform" style="line-height:36px;margin:0 0 0 15px;*margin-left:12px;border:none;padding:15px 0px;">
	<!--{loop $thelist  $my}-->
	<div class="event_grid" <!--{if  $my['time_end'] < $now }-->style="border-bottom:3px solid #999;"<!--{/if}--> >
		<p><a href="{u event/detail id=$my['id']}"><img src="{$my['pics']}" alt=""/></a></p>
		<p class="event_tit"><a style="font-size:20px;color:#3AA28D;" href="{u event/detail id=$my['id']}">{$my['title']}</a></p>
		<p>
		<!--{if  $my['time_end'] < $now }-->
			<span style="color:#990000;font-weight:bold;">活动已经结束！</span>
		<!--{else}-->
			开始：<span style="color:#990000;font-weight:bold;"><?php echo date('Y-m-d', $my['time_start']) ;?></span><br/>
			结束：<span style="color:#990000;font-weight:bold;"><?php echo date('Y-m-d', $my['time_end']) ;?></span>
		<!--{/if}-->
		</p>
		<p>发起者：{$my['info']['name']}</p>
		<p>电话：{$my['info']['tel']}</p>
		<p>地址：{$my['info']['add']}</p>
	</div>
	
	<!--{/loop}-->
<script type="text/javascript">

jQuery(function(){
	$("#myeventsubmit").bind({
		click: function(){
			$.ajax({
			   type: "POST",
			   url: "{u event/list type=ajax,order=savenew}",
			   data: {	title: $("#add_event_title").val(),  
						t_start: $("#add_event_timestart").val(),
						t_end: $("#add_event_timeend").val(),
						name: $("#add_event_name").val(),
						tel: $("#add_event_tel").val(),
						add: $("#add_event_add").val(),
						detail: $("#add_event_detail").val(),
						pics: $("#add_event_pics").val()
				},
			   dataType: "json",
			   beforeSend: function(){
					$.dialog({
						id: "first_dialog",
						title: '提示：',lock: true,
						content: '数据加载中，请稍后...'
					});
			   },
			   success: function(d){
					$.dialog.close();
					if(d.msg=="success"){
						$.dialog({
							title: '提示：',lock: true,
							content: '活动添加成功！'
						});
					}else{ 				
						$.dialog({
							title: '提示：',time:2000,
							content: '添加失败！'
						}); 
					}
			   }
			});
	}});
});
</script>
    <div class="blank9"></div>
</div>
</form>